using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Android.App;
using Android.Content;
using Android.OS;
using Android.Runtime;
using Android.Views;
using Android.Widget;

namespace droid
{
    [Activity(Label = "HistoryActivity")]
    public class HistoryActivity : Activity
    {
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            SetContentView(Resource.Layout.History);
            
            UpdateList();
            
        }

        public void UpdateList()
        {
            var history = ((OldShowActivity)Parent).history;
            var historyList = FindViewById<TextView>(Resource.Id.HistoryDiceRolls);
            historyList.Text = history;
        }

    }
}